package com.sinopec.basemodule.utils.preferences

import com.sinopec.basemodule.BaseApplication

/**
 * 类描述：sharePreferences扩展<br/>
 * 创建人：lwj<br/>
 * 创建时间：2018/11/15 14:46 <br/>
 */
inline fun <reified I, T> I.preferencesExt(default: T, noinline key: () -> String = { "" }) = PreferencesBy(BaseApplication.getInstance().applicationContext, default, key, "yelo_enjoy_pallet")